package fi.bluepill.server;


import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import rip.core.RIPServlet;

public class JettyServer {
    public static void main(String[] args) throws Exception{
        Server server = new Server(8080);
        ServletContextHandler root = new ServletContextHandler(server, "/", ServletContextHandler.SESSIONS);

        root.addServlet(RIPServlet.class, "/*");

        server.start();
        server.join();
    }
}
